﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Repository;

namespace Dispatcher.ViewModels
{
    class UserEditViewModel
    {
        public UserEditViewModel(ModelContainer modelContainer)
        {
            ModelContainer = modelContainer;
            Persons = modelContainer.PersonSet.ToList();
            Roles = modelContainer.RoleSet.ToList();
        }

        public ModelContainer ModelContainer { get; set; }

        public string Name { get; set; }

        public string PasswordHash { get; set; }

        public List<Person> Persons { get; set; }

        public List<Role> Roles { get; set; }

        public Person SelectedPerson { get; set; }

        public Role SelectedRole { get; set; }
    }
}
